﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PopupListContacts.aspx.cs" Inherits="MockPrjTeam2.Pages.Views.PopupListContacts" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table cellpadding="0" cellspacing="0" style="width: 100%">
  <tr>
      <td colspan="2" style="font-family: Arial, Helvetica, sans-serif; font-size: large; color: #639A18;
                font-weight: bold; width: 592px;">
                Search Contact
      </td>
      
  </tr>
  <tr>
    <td>
        First Name:&nbsp&nbsp<asp:TextBox ID="txtFirstName" runat="server" Width="200px"></asp:TextBox>
    </td>
    <td>
        Surname:&nbsp&nbsp<asp:TextBox ID="txtSurName" runat="server"></asp:TextBox>
    </td>    
  </tr>
  <tr>
    <td colspan="2">        
        <asp:Button ID="btSearch" runat="server" Text="Search Contact" 
            onclick="btSearch_Click" />&nbsp&nbsp
        <asp:Button ID="btNone" runat="server" Text="None" />&nbsp&nbsp
        <asp:Button ID="btClear" runat="server" Text="Clear" /> &nbsp&nbsp
        </td>    
  </tr>
  <tr>
    <td colspan="3">
    
        <asp:GridView ID="GVSearchContact" runat="server" AutoGenerateColumns="False" 
            AllowPaging="True" CellPadding="4" ForeColor="#333333" GridLines="None" 
            onpageindexchanging="GVSearchContact_PageIndexChanging">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField HeaderText="Select One">
                <ItemTemplate>
                    <input name="MyRadioButton" type="radio" 
                    value='<%# Eval("ContactID") %>' />
                </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField = "ContactName" HeaderText="Contact Name" />                 
                <asp:BoundField DataField = "MobilePhone" HeaderText="Mobile Phone" /> 
                <asp:BoundField DataField = "Email" HeaderText="Email" /> 
                <asp:BoundField DataField = "ContactType" HeaderText="Contact Type" /> 
                <asp:BoundField DataField = "IsActive" HeaderText="Is Active?" />                
            </Columns>
            <EditRowStyle BackColor="#7C6F57" />
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#E3EAEB" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F8FAFA" />
            <SortedAscendingHeaderStyle BackColor="#246B61" />
            <SortedDescendingCellStyle BackColor="#D4DFE1" />
            <SortedDescendingHeaderStyle BackColor="#15524A" />
        </asp:GridView>
    
    </td>
  </tr>
  <tr>
    <td colspan="3">
        
        <asp:Button ID="btSelect" runat="server" Text="Select" 
            onclick="btSelect_Click" />&nbsp&nbsp       
        <asp:Button ID="btClose" runat="server" Text="Close" />
        
    </td>
  </tr>
 </table>
        <asp:HiddenField ID="hdnContactId" runat="server" />
        <asp:HiddenField ID="hdnManagerId" runat="server" />
    </div>
    </form>
</body>
</html>
